add_library(cmsis INTERFACE) # 创建接口库
target_compile_definitions(cmsis INTERFACE -D${MCU_FAMILY})
target_include_directories(cmsis INTERFACE
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Include>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Device/ST/STM32F4xx/Include>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/CMSIS_RTOS_V2/>
    $<BUILD_INTERFACE:${PROJ_CORE_DIR}/include/>
    ) # 依赖 core 下的 xxx_conf.h (唯一的 MCU 驱动层依赖)